//*********************************************************************
// Copyright (C) 2014 Hell Prototypes / www.hellprototypes.com
// 
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
//********************************************************************
#ifndef I2C_DEV_H_
#define I2C_DEV_H_
#ifdef __cplusplus
extern "C" {
#endif

bool vibator_cmd(byte reg, byte cmd);
bool vibator_read(byte start_reg, byte *buffer, byte len);

bool magnetic_cmd(byte reg, byte cmd);
bool magnetic_read(byte start_reg, byte *buffer, byte len);

bool rtc_read(byte start_reg, byte *buffer, byte len);

#ifdef __cplusplus
}
#endif
#endif /* I2C_H_ */